<?php
/**
 * Created by PhpStorm.
 * User: ruwang
 * Date: 11/24/14
 * Time: 8:04 PM
 */

class Algo extends CI_Model {

  function __construct() {
    parent::__construct();
  }

  public function get($algoType=false){
    $returnArray=array();
    $alogList = mcrypt_list_algorithms();
    foreach($alogList as $algo){
      $returnArray[] = array(ConstantSet::KEY_ALGO=>$algo, ConstantSet::KEY_ALGO_NAME=>ucwords($algo));
    }
    return $returnArray;
  }
} 